package com.dekun.workhard.service.impl;

import com.dekun.workhard.entity.SysMenu;
import com.dekun.workhard.mapper.SysMenuMapper;
import com.dekun.workhard.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author zhoulg
 * @since 2021-08-05
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

    @Override
    public List<SysMenu> getListByLoginName(String loginName) {
        Assert.hasLength(loginName,"登录账号不能为空");
        return this.baseMapper.listByLoginName(loginName);
    }
}
